import request from "../request";


//获取表白墙列表
const getWallList = async (params:any) => {
    return await request.post('/api/infoWall/getInfoWallPage',JSON.stringify(params), { showLoading: false })
}

//删除动态
const removeWall = async (params:any) => {
    return await request.post('/api/infoWall/deleteAdvertWall',JSON.stringify(params),{showLoading:true})
}

//发布广告
const addPoster = async (params:any) => {
    return await request.post('/api/infoWall/addAdvertWall',JSON.stringify(params),{showLoading:true})
}

//首页数量
const getNumber = async () => {
    return await request.post('api/staff',{},{showLoading:false})
}

export {
    getWallList,
    removeWall,
    addPoster,
    getNumber
}